<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>通知中心 - SaaS Dashboard</title>
    <!-- 引入Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- 引入Chart.js -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
    <!-- 自定义CSS -->
    <style>
        /* 全局样式 */
        :root {
            --primary-color: #4f46e5;
            --secondary-color: #64748b;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
            --light-bg: #f8fafc;
            --dark-bg: #0f172a;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--light-bg);
            color: #334155;
            overflow-x: hidden;
        }

        /* 加载动画 */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-color);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .loader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader::after {
            content: '';
            width: 50px;
            height: 50px;
            border: 5px solid #fff;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* 主容器 */
        .main-container {
            display: flex;
            min-height: 100vh;
        }

        /* 侧边栏 */
        .sidebar {
            width: 280px;
            background-color: #2c3e50;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            z-index: 100;
            color: white;
        }

        .sidebar.collapsed {
            width: 80px;
        }

        .sidebar.collapsed .logo-text {
            display: none;
        }

        .sidebar.collapsed .sidebar-nav a {
            justify-content: center;
            padding: 12px 0;
            font-size: 0;
        }

        .sidebar.collapsed .sidebar-nav a i {
            margin-right: 0;
            font-size: 16px;
        }

        .sidebar.collapsed .sidebar-header {
            justify-content: center;
        }

        

        /* 侧边栏头部 */
        .sidebar-header {
            padding: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #34495e;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-color), #818cf8);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .logo-text {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
        }

        .sidebar-toggle {
            background: none;
            border: none;
            font-size: 1.25rem;
            color: white;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: var(--transition);
        }

        .sidebar-toggle:hover {
            background-color: #34495e;
            color: white;
        }

        /* 侧边栏导航 */
        .sidebar-nav {
            padding: 1rem 0;
        }

        .nav-item {
            margin-bottom: 0.25rem;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1.5rem;
            color: white;
            text-decoration: none;
            transition: var(--transition);
            border-left: 3px solid transparent;
        }

        .nav-link:hover {
            background-color: #34495e;
            border-left-color: #3498db;
        }

        .nav-link.active {
            background-color: #34495e;
            color: white;
            border-left-color: #3498db;
            font-weight: 500;
        }

        .nav-icon {
            font-size: 1.125rem;
            width: 20px;
            text-align: center;
        }

        .nav-text {
            font-weight: 500;
        }

        /* 主内容区域 */
        .main-content {
            flex: 1;
            margin-left: 280px;
            transition: var(--transition);
        }

        .main-content.expanded {
            margin-left: 80px;
        }

        /* 顶部导航栏 */
        .top-nav {
            background-color: #fff;
            box-shadow: var(--card-shadow);
            padding: 1rem 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 99;
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* 搜索框 */
        .search-box {
            position: relative;
        }

        .search-box input {
            width: 300px;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.875rem;
            transition: var(--transition);
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .search-box .fa-search {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary-color);
        }

        /* 导航右侧 */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* 通知图标 */
        .notification-icon {
            position: relative;
            font-size: 1.25rem;
            color: var(--secondary-color);
            cursor: pointer;
            transition: var(--transition);
        }

        .notification-icon:hover {
            color: var(--primary-color);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--danger-color);
            color: #fff;
            font-size: 0.75rem;
            padding: 0.125rem 0.375rem;
            border-radius: 50%;
            min-width: 18px;
            text-align: center;
        }

        /* 用户信息 */
        .user-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 8px;
            transition: var(--transition);
        }

        .user-info:hover {
            background-color: #f1f5f9;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), #818cf8);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
        }

        .user-details {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--dark-bg);
        }

        .user-role {
            font-size: 0.75rem;
            color: var(--secondary-color);
        }

        /* 内容区域 */
        .content {
            padding: 2rem;
        }

        /* 页面标题 */
        .page-title {
            margin-bottom: 2rem;
        }

        .page-title h1 {
            font-size: 1.875rem;
            font-weight: 700;
            color: var(--dark-bg);
            margin: 0;
        }

        /* 内容头部 */
        .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        /* 按钮样式 */
        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            font-size: 0.875rem;
            transition: var(--transition);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: #fff;
        }

        .btn-primary:hover {
            background-color: #4338ca;
            transform: translateY(-1px);
        }

        .btn-secondary {
            background-color: #f1f5f9;
            color: var(--secondary-color);
            border: 1px solid #e2e8f0;
        }

        .btn-secondary:hover {
            background-color: #e2e8f0;
        }

        .btn-danger {
            background-color: var(--danger-color);
            color: #fff;
        }

        .btn-danger:hover {
            background-color: #dc2626;
            transform: translateY(-1px);
        }

        /* 通知统计卡片 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background-color: #fff;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            border: 1px solid #e2e8f0;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        .stat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .stat-title {
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--secondary-color);
        }

        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.125rem;
        }

        .stat-icon.primary {
            background-color: #ede9fe;
            color: var(--primary-color);
        }

        .stat-icon.success {
            background-color: #d1fae5;
            color: var(--success-color);
        }

        .stat-icon.warning {
            background-color: #fef3c7;
            color: var(--warning-color);
        }

        .stat-icon.danger {
            background-color: #fee2e2;
            color: var(--danger-color);
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--dark-bg);
            margin-bottom: 0.5rem;
        }

        .stat-change {
            font-size: 0.875rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .stat-change.positive {
            color: var(--success-color);
        }

        .stat-change.negative {
            color: var(--danger-color);
        }

        /* 通知筛选 */
        .notification-filter {
            background-color: #fff;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            margin-bottom: 1.5rem;
            border: 1px solid #e2e8f0;
            display: flex;
            gap: 1rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .filter-tabs {
            display: flex;
            gap: 0.5rem;
        }

        .filter-tab {
            padding: 0.75rem 1.5rem;
            border: 1px solid #e2e8f0;
            background-color: #fff;
            border-radius: 8px;
            font-weight: 500;
            color: var(--secondary-color);
            cursor: pointer;
            transition: var(--transition);
        }

        .filter-tab:hover {
            background-color: #f1f5f9;
        }

        .filter-tab.active {
            background-color: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
        }

        .filter-actions {
            margin-left: auto;
            display: flex;
            gap: 0.75rem;
        }

        /* 通知列表 */
        .notifications-grid {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 1.5rem;
        }

        .notification-list {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            border: 1px solid #e2e8f0;
            overflow: hidden;
        }

        .notification-item {
            padding: 1.5rem;
            border-bottom: 1px solid #f1f5f9;
            transition: var(--transition);
            display: flex;
            gap: 1rem;
            align-items: flex-start;
            cursor: pointer;
        }

        .notification-item:hover {
            background-color: #f8fafc;
        }

        .notification-item.unread {
            background-color: #f8fafc;
            border-left: 4px solid var(--primary-color);
        }

        .notification-item:last-child {
            border-bottom: none;
        }

        .notification-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .notification-icon.success {
            background-color: #d1fae5;
            color: var(--success-color);
        }

        .notification-icon.warning {
            background-color: #fef3c7;
            color: var(--warning-color);
        }

        .notification-icon.danger {
            background-color: #fee2e2;
            color: var(--danger-color);
        }

        .notification-icon.info {
            background-color: #dbeafe;
            color: #3b82f6;
        }

        .notification-content {
            flex: 1;
        }

        .notification-title {
            font-weight: 600;
            color: var(--dark-bg);
            margin-bottom: 0.5rem;
        }

        .notification-desc {
            font-size: 0.875rem;
            color: var(--secondary-color);
            margin-bottom: 0.75rem;
        }

        .notification-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.75rem;
            color: var(--secondary-color);
        }

        .notification-time {
            font-weight: 500;
        }

        .notification-actions {
            display: flex;
            gap: 0.75rem;
        }

        .action-btn {
            background: none;
            border: none;
            color: var(--secondary-color);
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
            transition: var(--transition);
        }

        .action-btn:hover {
            background-color: #f1f5f9;
            color: var(--primary-color);
        }

        /* 通知设置面板 */
        .notification-settings {
            background-color: #fff;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            border: 1px solid #e2e8f0;
        }

        .notification-settings h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--dark-bg);
            margin-bottom: 1.5rem;
        }

        .setting-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
            border-bottom: 1px solid #f1f5f9;
        }

        .setting-item:last-child {
            border-bottom: none;
        }

        .setting-info h4 {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--dark-bg);
            margin: 0 0 0.25rem 0;
        }

        .setting-info p {
            font-size: 0.75rem;
            color: var(--secondary-color);
            margin: 0;
        }

        /* 开关按钮 */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #e2e8f0;
            transition: var(--transition);
            border-radius: 24px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: var(--transition);
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background-color: var(--primary-color);
        }

        input:focus + .toggle-slider {
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .notifications-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
            }

            .top-nav {
                padding: 1rem;
            }

            .search-box input {
                width: 200px;
            }

            .content {
                padding: 1rem;
            }

            .content-header {
                flex-direction: column;
                align-items: stretch;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .notification-filter {
                flex-direction: column;
                align-items: stretch;
            }

            .filter-actions {
                margin-left: 0;
                justify-content: stretch;
            }

            .filter-tab {
                flex: 1;
                text-align: center;
            }

            .filter-actions .btn {
                flex: 1;
                justify-content: center;
            }
        }

        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }
    </style>
</head>
<body>
    <!-- 加载动画 -->
    <div class="loader"></div>

    <div class="main-container">
        <!-- 侧边栏 -->
        <aside class="sidebar" id="sidebar">
            <div class="sidebar-header">
                <div class="logo">
                    <div class="logo-icon">S</div>
                    <span class="logo-text">平台端系统</span>
                </div>
                <button class="sidebar-toggle" id="sidebarToggle">
                <i class="fa fa-angle-left toggle-icon"></i>
            </button>
            </div>
            <nav class="sidebar-nav">
                <a href="index.html" class="nav-link">
                    <i class="fa fa-dashboard nav-icon"></i>
                    <span class="nav-text">仪表盘</span>
                </a>
                <a href="users.html" class="nav-link">
                    <i class="fa fa-users nav-icon"></i>
                    <span class="nav-text">用户管理</span>
                </a>
                <a href="analytics.html" class="nav-link">
                    <i class="fa fa-bar-chart nav-icon"></i>
                    <span class="nav-text">数据分析</span>
                </a>
                <a href="tenant-settings.html" class="nav-link">
                    <i class="fa fa-building nav-icon"></i>
                    <span class="nav-text">租户设置</span>
                </a>
                <a href="contracts.html" class="nav-link">
                    <i class="fa fa-file-text-o nav-icon"></i>
                    <span class="nav-text">合同管理</span>
                </a>
                <a href="settings.html" class="nav-link">
                    <i class="fa fa-cog nav-icon"></i>
                    <span class="nav-text">系统设置</span>
                </a>
                <a href="notifications.html" class="nav-link active">
                    <i class="fa fa-bell nav-icon"></i>
                    <span class="nav-text">通知中心</span>
                </a>
                <a href="reports.html" class="nav-link">
                    <i class="fa fa-file-text nav-icon"></i>
                    <span class="nav-text">报表管理</span>
                </a>
                <a href="orders.html" class="nav-link">
                    <i class="fa fa-shopping-cart nav-icon"></i>
                    <span class="nav-text">订单管理</span>
                </a>
                <a href="help.html" class="nav-link">
                    <i class="fa fa-question-circle nav-icon"></i>
                    <span class="nav-text">帮助中心</span>
                </a>
            </nav>
        </aside>

        <!-- 主内容 -->
        <main class="main-content" id="mainContent">
            <!-- 顶部导航栏 -->
            <nav class="top-nav">
                <div class="nav-left">
                    <button class="sidebar-toggle d-md-none" id="mobileSidebarToggle">
                        <i class="fa fa-bars"></i>
                    </button>
                    <div class="search-box">
                        <i class="fa fa-search"></i>
                        <input type="text" placeholder="搜索...">
                    </div>
                </div>
                <div class="nav-right">
                    <div class="notification-icon">
                        <i class="fa fa-bell"></i>
                        <span class="notification-badge">3</span>
                    </div>
                    <div class="user-info">
                        <div class="user-avatar">JD</div>
                        <div class="user-details">
                            <div class="user-name">John Doe</div>
                            <div class="user-role">管理员</div>
                        </div>
                        <i class="fa fa-chevron-down"></i>
                    </div>
                </div>
            </nav>

            <!-- 内容区域 -->
            <div class="content">
                <!-- 页面标题 -->
                <div class="page-title">
                    <h1>通知中心</h1>
                </div>

                <!-- 通知统计卡片 -->
                <div class="stats-grid">
                    <div class="stat-card">
                        <div class="stat-header">
                            <span class="stat-title">未读通知</span>
                            <div class="stat-icon primary">
                                <i class="fa fa-bell-o"></i>
                            </div>
                        </div>
                        <div class="stat-value">12</div>
                        <div class="stat-change positive">
                            <i class="fa fa-arrow-up"></i>
                            <span>3 条新通知</span>
                        </div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-header">
                            <span class="stat-title">系统通知</span>
                            <div class="stat-icon success">
                                <i class="fa fa-info-circle"></i>
                            </div>
                        </div>
                        <div class="stat-value">25</div>
                        <div class="stat-change positive">
                            <i class="fa fa-arrow-up"></i>
                            <span>5 条新通知</span>
                        </div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-header">
                            <span class="stat-title">订单通知</span>
                            <div class="stat-icon warning">
                                <i class="fa fa-shopping-cart"></i>
                            </div>
                        </div>
                        <div class="stat-value">8</div>
                        <div class="stat-change negative">
                            <i class="fa fa-arrow-down"></i>
                            <span>2 条已处理</span>
                        </div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-header">
                            <span class="stat-title">用户通知</span>
                            <div class="stat-icon danger">
                                <i class="fa fa-users"></i>
                            </div>
                        </div>
                        <div class="stat-value">15</div>
                        <div class="stat-change positive">
                            <i class="fa fa-arrow-up"></i>
                            <span>10 条新通知</span>
                        </div>
                    </div>
                </div>

                <!-- 通知筛选 -->
                <div class="notification-filter">
                    <div class="filter-tabs">
                        <div class="filter-tab active">全部</div>
                        <div class="filter-tab">未读</div>
                        <div class="filter-tab">系统</div>
                        <div class="filter-tab">订单</div>
                        <div class="filter-tab">用户</div>
                        <div class="filter-tab">其他</div>
                    </div>
                    <div class="filter-actions">
                        <button class="btn btn-secondary">
                            <i class="fa fa-refresh"></i>
                            刷新
                        </button>
                        <button class="btn btn-secondary">
                            <i class="fa fa-trash"></i>
                            清空
                        </button>
                        <button class="btn btn-primary">
                            <i class="fa fa-envelope-o"></i>
                            全部标为已读
                        </button>
                    </div>
                </div>

                <!-- 通知列表和设置 -->
                <div class="notifications-grid">
                    <!-- 通知列表 -->
                    <div class="notification-list">
                        <!-- 通知项 - 未读 -->
                        <div class="notification-item unread">
                            <div class="notification-icon warning">
                                <i class="fa fa-shopping-cart"></i>
                            </div>
                            <div class="notification-content">
                                <div class="notification-title">新订单通知</div>
                                <div class="notification-desc">用户张三刚刚提交了一个新订单，订单金额 ¥2,880.00</div>
                                <div class="notification-meta">
                                    <span class="notification-time">2小时前</span>
                                    <div class="notification-actions">
                                        <button class="action-btn">查看</button>
                                        <button class="action-btn">标记已读</button>
                                        <button class="action-btn">删除</button>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 通知项 - 未读 -->
                        <div class="notification-item unread">
                            <div class="notification-icon danger">
                                <i class="fa fa-users"></i>
                            </div>
                            <div class="notification-content">
                                <div class="notification-title">新用户注册</div>
                                <div class="notification-desc">用户李四刚刚注册了账户，邮箱：lisi@example.com</div>
                                <div class="notification-meta">
                                    <span class="notification-time">4小时前</span>
                                    <div class="notification-actions">
                                        <button class="action-btn">查看</button>
                                        <button class="action-btn">标记已读</button>
                                        <button class="action-btn">删除</button>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 通知项 - 未读 -->
                        <div class="notification-item unread">
                            <div class="notification-icon success">
                                <i class="fa fa-info-circle"></i>
                            </div>
                            <div class="notification-content">
                                <div class="notification-title">系统更新</div>
                                <div class="notification-desc">系统已成功更新到 v1.0.1 版本，新增了多项功能</div>
                                <div class="notification-meta">
                                    <span class="notification-time">6小时前</span>
                                    <div class="notification-actions">
                                        <button class="action-btn">查看</button>
                                        <button class="action-btn">标记已读</button>
                                        <button class="action-btn">删除</button>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 通知项 - 已读 -->
                        <div class="notification-item">
                            <div class="notification-icon info">
                                <i class="fa fa-line-chart"></i>
                            </div>
                            <div class="notification-content">
                                <div class="notification-title">数据分析报告</div>
                                <div class="notification-desc">本月数据分析报告已生成，请及时查看</div>
                                <div class="notification-meta">
                                    <span class="notification-time">1天前</span>
                                    <div class="notification-actions">
                                        <button class="action-btn">查看</button>
                                        <button class="action-btn">标记未读</button>
                                        <button class="action-btn">删除</button>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 通知项 - 已读 -->
                        <div class="notification-item">
                            <div class="notification-icon warning">
                                <i class="fa fa-exclamation-triangle"></i>
                            </div>
                            <div class="notification-content">
                                <div class="notification-title">服务器警告</div>
                                <div class="notification-desc">服务器 CPU 使用率超过 80%，请及时处理</div>
                                <div class="notification-meta">
                                    <span class="notification-time">2天前</span>
                                    <div class="notification-actions">
                                        <button class="action-btn">查看</button>
                                        <button class="action-btn">标记未读</button>
                                        <button class="action-btn">删除</button>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 通知项 - 已读 -->
                        <div class="notification-item">
                            <div class="notification-icon success">
                                <i class="fa fa-check-circle"></i>
                            </div>
                            <div class="notification-content">
                                <div class="notification-title">任务完成通知</div>
                                <div class="notification-desc">数据备份任务已成功完成，备份文件已保存到云端</div>
                                <div class="notification-meta">
                                    <span class="notification-time">3天前</span>
                                    <div class="notification-actions">
                                        <button class="action-btn">查看</button>
                                        <button class="action-btn">标记未读</button>
                                        <button class="action-btn">删除</button>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 通知项 - 已读 -->
                        <div class="notification-item">
                            <div class="notification-icon info">
                                <i class="fa fa-calendar"></i>
                            </div>
                            <div class="notification-content">
                                <div class="notification-title">会议提醒</div>
                                <div class="notification-desc">明天下午 2:00 有团队周会，请准时参加</div>
                                <div class="notification-meta">
                                    <span class="notification-time">4天前</span>
                                    <div class="notification-actions">
                                        <button class="action-btn">查看</button>
                                        <button class="action-btn">标记未读</button>
                                        <button class="action-btn">删除</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 通知设置 -->
                    <div class="notification-settings">
                        <h3>通知设置</h3>
                        <div class="setting-item">
                            <div class="setting-info">
                                <h4>新订单通知</h4>
                                <p>当有新订单提交时接收通知</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox" checked>
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                        <div class="setting-item">
                            <div class="setting-info">
                                <h4>用户注册通知</h4>
                                <p>当有新用户注册时接收通知</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox" checked>
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                        <div class="setting-item">
                            <div class="setting-info">
                                <h4>系统更新通知</h4>
                                <p>当系统更新时接收通知</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox" checked>
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                        <div class="setting-item">
                            <div class="setting-info">
                                <h4>服务器告警</h4>
                                <p>当服务器出现异常时接收通知</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox" checked>
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                        <div class="setting-item">
                            <div class="setting-info">
                                <h4>数据分析报告</h4>
                                <p>当数据分析报告生成时接收通知</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox">
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                        <div class="setting-item">
                            <div class="setting-info">
                                <h4>会议提醒</h4>
                                <p>当有会议安排时接收提醒</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox" checked>
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                        <div class="setting-item">
                            <div class="setting-info">
                                <h4>邮件通知</h4>
                                <p>同时接收邮件通知</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox">
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                        <div class="setting-item">
                            <div class="setting-info">
                                <h4>短信通知</h4>
                                <p>同时接收短信通知</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox">
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- 引入Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <!-- 自定义JS -->
    <script>
        // 页面加载动画
        window.addEventListener('load', () => {
            const loader = document.querySelector('.loader');
            loader.classList.add('hidden');
        });

        // 侧边栏切换
        const sidebarToggle = document.getElementById('sidebarToggle');
        const sidebar = document.getElementById('sidebar');
        const mainContent = document.getElementById('mainContent');
        const mobileSidebarToggle = document.getElementById('mobileSidebarToggle');

        sidebarToggle.addEventListener('click', () => {
            sidebar.classList.toggle('collapsed');
            mainContent.classList.toggle('expanded');
            // 切换按钮图标
            const toggleIcon = sidebarToggle.querySelector('.toggle-icon');
            if (sidebar.classList.contains('collapsed')) {
                toggleIcon.classList.remove('fa-angle-left');
                toggleIcon.classList.add('fa-angle-right');
            } else {
                toggleIcon.classList.remove('fa-angle-right');
                toggleIcon.classList.add('fa-angle-left');
            }
        });

        mobileSidebarToggle.addEventListener('click', () => {
            sidebar.classList.toggle('open');
        });

        // 点击主内容区域关闭侧边栏（移动端）
        mainContent.addEventListener('click', () => {
            if (sidebar.classList.contains('open')) {
                sidebar.classList.remove('open');
            }
        });

        // 通知筛选标签切换
        const filterTabs = document.querySelectorAll('.filter-tab');
        filterTabs.forEach(tab => {
            tab.addEventListener('click', () => {
                filterTabs.forEach(t => t.classList.remove('active'));
                tab.classList.add('active');
            });
        });

        // 通知项点击事件
        const notificationItems = document.querySelectorAll('.notification-item');
        notificationItems.forEach(item => {
            item.addEventListener('click', () => {
                // 点击通知项主体标记为已读
                if (item.classList.contains('unread')) {
                    item.classList.remove('unread');
                }
            });
        });

        // 通知操作按钮事件
        const actionBtns = document.querySelectorAll('.action-btn');
        actionBtns.forEach(btn => {
            btn.addEventListener('click', (e) => {
                e.stopPropagation(); // 阻止事件冒泡
                const action = btn.textContent.trim();
                const notificationItem = btn.closest('.notification-item');
                
                if (action === '标记已读') {
                    notificationItem.classList.remove('unread');
                } else if (action === '标记未读') {
                    notificationItem.classList.add('unread');
                } else if (action === '删除') {
                    notificationItem.style.opacity = '0';
                    setTimeout(() => {
                        notificationItem.remove();
                    }, 300);
                }
            });
        });
    </script>
</body>
</html>